package com.alibaba.sample.petstore.dal.dao.cached;

import java.util.concurrent.ConcurrentHashMap;

public abstract class AbstractCachedDao<DAO> {
    protected final DAO backingDao;

    public AbstractCachedDao(DAO backingDao) {
        this.backingDao = backingDao;
    }

    protected final static <K, V> ConcurrentHashMap<K, V> createCache() {
        return new ConcurrentHashMap<K, V>();
    }
}
